﻿using UnityEngine;
using System.Collections;

public class EnableBehaviour : MonoBehaviour {

	public MonoBehaviour target;

	public float time;

	void Awake()
	{
		target.enabled = false;
		StartCoroutine ("Initialize");
	}

	IEnumerator Initialize()
	{
		yield return new WaitForSeconds(time);
		target.enabled = true;
		Destroy (this);
	}
}
